Repository navigation
Conversation
With a focus on making as few breaking changes as possible, rather than trying to use `Test.RunnerV2` to its fullest. That can be done some other time.
mpizenberg
left a comment
There was a problem hiding this comment.
It seems there will be a problem with error reporting in case a failure happen in unit tests. The ConsoleColor code calls "List.map2 (failureToText usColor) failures distributionReports". But with the changes here, the "distributionReports" value would be empty, and the zipping of map2 will thus be empty, and thus ignoring all failures. We should probably pass "NoDistribution ()" for unit tests, or stop zipping both with map2.
There might be exercism-specific checks to do. The order of the tests results is be important I think if I remember correctly, so changes related to the split of unit and fuzz might have an impact. To be checked.
I see there are changes related to timing and debug logging in the runnerv2. This is cool, and eventually we might want to change it here, to retrieve it instead of the workaround we currently do in elm-test-rs supervisor.
Claude detected there might be an issue with how the runs count is handled in "fuzzWith", and probably being ignored in V2. I didn’t check. It also thinks there might an issue with console logging using unbuffered mode, because it calles "console.error(...)" directly, and it might change how elm-test-rs detects logs. I haven’t checked, but in any case, it’s probably better to change elm-test-rs and elm-test-runner to work with the new way to collect debug logs (and timing).
Co-authored-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
This reverts commit b278ebe.
I now pass
Did the tests have a defined order previously? 🤔 Let me know once you know more about Exercism!
Thanks, this was a bug in the RunnerV2 branch. Fixed in elm-explorations/test@8292c19
Good catch. The best solution is to make a few changes for this in elm-test-rs. I’ve made a PR there as well: mpizenberg/elm-test-rs#148 |
Signed-off-by: Matthieu Pizenberg <matthieu.pizenberg@gmail.com>
|
Made a couple changes here and in elm-test-rs. Looks good to me. Test order isn't a problem, because we re-sort results by test name into source-file order, doing some parsing. The test-code extractor expects the old |
This PR tracks what it takes to use elm-explorations/test#260 here, with a focus on making this package work with as few changes in elm-test-rs as possible, rather than trying to use
Test.RunnerV2to its fullest. That can be done some other time.The breaking changes in the Elm API in this PR does not seem to affect elm-test-rs – this package exposes much more than it needs to for some reason.
Companion elm-test-rs PR: mpizenberg/elm-test-rs#148